home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / batchut / holdit10.zip / DEMO.BAT next >
DOS Batch File  |  1993-05-05  |  1KB  |  60 lines

  1. @echo off
  2. cls
  3. :start
  4. echo  
  5. echo Hit ESC to quit
  6. HOLDIT 4
  7. if errorlevel = 200 goto err200
  8. if errorlevel = 100 goto err100
  9. if errorlevel =  10 goto err10
  10. if errorlevel =   9 goto err9
  11. if errorlevel =   8 goto err8
  12. if errorlevel =   7 goto err7
  13. if errorlevel =   6 goto err6
  14. if errorlevel =   5 goto err5
  15. if errorlevel =   4 goto err4
  16. if errorlevel =   3 goto err3
  17. if errorlevel =   2 goto err2
  18. if errorlevel =   1 goto err1
  19. if errorlevel =   0 goto err0
  20. :err200 
  21. echo You hit ESC, bye bye
  22. HOLDIT 2 > NUL
  23. exit
  24. :err100
  25. echo The returned code was 100
  26. goto start
  27. :err10
  28. echo The returned code was 10
  29. goto start
  30. :err9
  31. echo The returned code was 9
  32. goto start
  33. :err8
  34. echo The returned code was 8
  35. goto start
  36. :err7
  37. echo The returned code was 7
  38. goto start
  39. :err6
  40. echo The returned code was 6
  41. goto start
  42. :err5
  43. echo The returned code was 5
  44. goto start
  45. :err4
  46. echo The returned code was 4
  47. goto start
  48. :err3
  49. echo The returned code was 3
  50. goto start
  51. :err2
  52. echo The returned code was 2
  53. goto start
  54. :err1
  55. echo The returned code was 1
  56. goto start
  57. :err0
  58. echo The returned code was 0
  59. goto start
  60.